import { ALL_ROUTES } from "@/config/routerConstant";

const Login = () => import("@page/unAuth/login/index.vue");
const ForgetPwd = () => import("@page/unAuth/forgetPwd/index.vue");
const NotFound = () => import("@page/unAuth/404/index.vue");
const NotAuthorized = () => import("@page/unAuth/403/index.vue");

export const UNAUTH_ROUTES = [
  {
    path: ALL_ROUTES.LOGIN.path,
    component: Login,
    name: ALL_ROUTES.LOGIN.name,
    meta: {
      title: ALL_ROUTES.LOGIN.title,
    },
  },
  {
    path: ALL_ROUTES.FORGET_PWD.path,
    component: ForgetPwd,
    name: ALL_ROUTES.FORGET_PWD.name,
    meta: {
      title: ALL_ROUTES.FORGET_PWD.title,
    },
  },
  {
    path: ALL_ROUTES.NOT_AUTHORIZED.path,
    name: ALL_ROUTES.NOT_AUTHORIZED.name,
    meta: {
      title: ALL_ROUTES.NOT_AUTHORIZED.title,
    },
    component: NotAuthorized,
  },
  {
    path: "/:pathMatch(.*)*",
    name: ALL_ROUTES.NOT_FOUND.name,
    meta: {
      title: ALL_ROUTES.NOT_FOUND.title,
    },
    component: NotFound,
  },
];
